@extends('layout.personalInfo')

@section('title','用户信息')

@section('personalInfoContent')
<style type="text/css">
	.form-group input, select{
		margin:0px;
	}
</style>
<div class="col-md-8 col-md-offset-1" style="border:solid 1px #ddd;padding-top:20px;margin-top:30px">
	<form class="form-horizontal" action="/home/user/edit" method="post" enctype="multipart/form-data" role="form">
	  
	  <div class="form-group">
	    <label for="inputEmail3" class="col-sm-2 control-label">头像</label>
	    <div class="col-sm-10">
	      <img height="60px" src="{{$data->profile}}" alt="">
	      <!-- <div class="clearfix"></div> -->
	      <input type="file" name="profile" id="exampleInputFile" style="margin:0px;height:30px">
	    </div>
	  </div>
	  <div class="form-group">
	    <label for="inputPassword3" class="col-sm-2 control-label">用户名</label>
	    <div class="col-sm-10">
	      <input type="text" class="form-control" name="username" value="{{$data->username}}" id="inputPassword3" placeholder="">
	    </div>
	  </div>
	  <div class="form-group">
	    <label for="inputEmail3" class="col-sm-2 control-label">邮箱</label>
	    <div class="col-sm-10">
	      <input type="email" class="form-control" name="email" value="{{$data->email}}" id="inputEmail3" placeholder="">
	    </div>
	  </div>
	  {{csrf_field()}}
	  <div class="form-group">
	    <div class="col-sm-offset-2 col-sm-10">
	      <button type="submit" class="btn btn-default">保存</button>
	    </div>
	  </div>
	</form>
</div>
@endsection